package com.campus.domain.Dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

@Data
@Accessors(chain = true)
public class ActivityUpdateDto {

    @NotNull(message = "活动id不能为空")
    private Long id;
    @NotNull(message = "活动名称不能为空")
    private String name;
    @NotBlank(message = "活动类型不能为空")
    private String category;
    private String title;
    private String abstracts;
    private String detailedDesc;
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd")
    private Date archivedTime;
    private String picUrls;
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd")
    private Date startTime;
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd")
    private Date endTime;
}
